<template>
	<view class="home">
		<!-- banner图 -->
		<img :src="imgUrlBase + 'banner.png'" class="banner" />

		<!-- 班级信息 -->
		<view class="name-box">
			<view class="info">
				<img :src="imgUrlBase + 'class_name.png'">
				<view class="name-info">
					<view class="class-name">2001届高三(6)班</view>
					<view class="teacher">
						班主任   张天师
					</view>
				</view>
			</view>
		</view>
		
		<studentList titleTextFlag="1"/>
		<studentList />
	</view>
</template>

<script>
	import studentList from "@/components/StudentList/StudentList"

	export default {
		data(){
			return{
				imgUrlBase: this.$imgUrlBase,
			}	
		},
		onLoad(options){
	
		},
		onShow(){
			//测试
		},
		components: {
			studentList,
		},
		methods:{
		}
	}
</script>

<style lang="scss" scoped>
	.home{
		min-height: 100vh;
		background:rgba(226,232,231,1);
		overflow-x: hidden;
		font-size: 0;
		.banner{
			width: 750rpx;
			height: 309rpx;
		}
		.name-box{
			width: 100%;
			height: 152rpx;
			display: flex;
			justify-content: flex-start;
			align-items: center;
			padding: 0 30rpx;
			background-color: #fff;
			.info{
				display: flex;
				justify-content: flex-start;
				align-items: center;
				>img{
					width: 121rpx;
					height: 95rpx;
				}
				.name-info{
					margin-left: 16rpx;
					.class-name{
						margin-top: 12rpx;
						font-size:28rpx;
						font-weight:bold;
						color:rgba(79,79,79,1);
					}
					.teacher{
						margin-top: 15rpx;
						font-size:24rpx;
						color:rgba(198,197,197,1);
					}
				}
			}
		}
	}
</style>